package cn.powertime.evaluation.idempotent;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 获取或者检查幂等性Token
 * </p>
 * @author ZYW
 * @version 1.0
 * @date 2019-08-19 21:36
 */
public interface TokenService {
    String HEADER_TOKEN_NAME = "idempotent-token";

    String createToken();

    void checkToken(HttpServletRequest request);
}
